package com.fzu.ess.common;

/**
 * Created by ercha on 2015/10/11.
 */
public abstract class Const {
    /** session 的 key*/
    public class SESSION{
        public final static String USER = "user";   //保存用户对象
        public final static String MESSAGE_CNT = "messageCnt";   //保存系统消息数
        public final static String AVATAR = "avatar";   //保存用户头像

    }

    public class USER_LEVEL{
        public final static int SUPER_ADMIN = 0;
        public final static int ADMIN = 1;
        public final static int USER = 2;
        public final static int LOCKED = 3;             //未激活账号
        public final static int UNAVALIABALE = 4;       //冻结账号
    }

//    class ACCOUNT_STATUS{
//        public final static byte UNACTIVATE = 1;
//        public final static byte NORMAL = 2;
//        public final static byte FREEZE = 3;
//    }

    /** 与用户等级同步 */
    /** 直接使用用户等级 */
    public class DEFAULT_ROLE{
//        public final static String SUPER_ADMIN = "0";
//        public final static String ADMIN = "1";
//        public final static String USER = "2";
//        public final static int LOCKED = 3;             //未激活账号
//        public final static int UNAVALIABALE = 4;       //冻结账号
    }

    /**
     * 缓存名的前缀
     */
    public class CACHE_PREFIX{
        public final static String USERNAME = "usn_";
        public final static String SESSION = "ss_";
        public final static String ACTIVEMAIL = "am_";  //保存激活邮件的 uuid
    }

    /**
     * 缓存的名字
     */
    public class CACHE_NAME{
        public final static String MAIL = "mailCache";
//        public final static String FORGET_PASSWORD_MAIL = "forgetPasswordMail";
    }

    public static final String REGISTER_SUCCESS_URL = "/registerSuccess";

    public static final String REGISTER_FAILED_URL = "/registerFailed";

    public static final String HOME_URL = "/";

    /**
     * 保存图片的目录名
     */
    public static final String IMAGE_PATH = "/images/";

    /**
     * 不同尺寸图片的前缀
     */
    public static final String[] IMAGE_PREFIX = {"@l", "@m", "@s"};

    /**
     *  normal: 未删除
     *  deleted: 已删除
     */
    public static final int DEL_FLAG_NORMAL = 0;
    public static final int DEL_FLAG_DELETED = 1;
}
